﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marta.buchalska.wesele.Model
{
    public class SessionAdapter
    {
        private System.Web.SessionState.HttpSessionState httpSessionState;
        private const string USER = "USER";

        public Model.User User
        {
            get { return httpSessionState[USER] as Model.User; }
            set { httpSessionState[USER] = value; }
        }

        public SessionAdapter(System.Web.SessionState.HttpSessionState httpSessionState)
        {
            // TODO: Complete member initialization
            this.httpSessionState = httpSessionState;
        }


    }
}
